# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=lua-turboredis
pkgver=0.1
pkgrel=0
pkgdesc="Redis library for Turbo"
url="http://enotodden.github.io/turboredis/"
arch="noarch"
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="https://raw.githubusercontent.com/enotodden/turboredis/5cc67d689cb4004d1be5f0ca9fbd7e103e0f09ef/turboredis.lua"

_builddir="$srcdir"

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	install -Dm644 "$srcdir"/turboredis.lua \
		"$pkgdir"/usr/share/lua/5.1/turboredis.lua || return 1
}
sha512sums="c18ff8df83acc85e412445a2940c444e6d6f3eb719c46b00e250a190c979b7c7ab8cf725cd0189d1cc5a4fc1d25c34af036208bb93658c0737bf5f7bce0398c3  turboredis.lua"
